package com.loanapp.server.sso;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by Administrator on 2017/7/16.
 */


@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.loanapp.server.user.api", "com.loanapp.server.sso"})
@EnableHystrix
@EnableHystrixDashboard
@ComponentScan(basePackages={"com.loanapp.server.user","com.loanapp.server.sso","com.loanapp.base.controller"})
public class SSoControllerApplication {

    public static void main(String[] args) {
        SpringApplication.run(SSoControllerApplication.class);
    }
}
